home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PVDRIVER / ATI_NT.ZIP / OEMSETUP.INF < prev    next >
INI File  |  1993-03-21  |  21KB  |  589 lines

  1. ;-----------------------------------------------------------------------
  2. ; OPTION TYPE
  3. ; -----------
  4. ; This identifies the Option type we are dealing with.  The different
  5. ; possible types are:
  6. ;
  7. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  8. ;-----------------------------------------------------------------------
  9.  
  10. [Identification]
  11.     OptionType = VIDEO
  12.  
  13. ;-----------------------------------------------------------------------
  14. ; LANGUAGES SUPPORTED
  15. ; -------------------
  16. ;
  17. ; The languages supported by the OEM INF, For every language supported
  18. ; we need to have a separate text section for every displayable text
  19. ; section.
  20. ;
  21. ;-----------------------------------------------------------------------
  22.  
  23. [LanguagesSupported]
  24.     ENG
  25.  
  26. ;-----------------------------------------------------------------------
  27. ; OPTION LIST
  28. ; -----------
  29. ; This section lists the OEM Option key names.  These keys are locale
  30. ; independent and used to represent the option in a locale independent
  31. ; manner.
  32. ;
  33. ;-----------------------------------------------------------------------
  34.  
  35. ;
  36. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  37. ;
  38. ; If you don't want to create a VRefresh or Interlaced value under the service
  39. ; parameters then use the value ""
  40. ;
  41.  
  42. [Options]
  43.     "ATI Graphics Accelerators 640x480x8"   = ati, 8,  640,  480   , "" , ""
  44.     "ATI Graphics Accelerators 800x600x8"   = ati, 8,  800,  600   , "" , ""
  45.     "ATI Graphics Accelerators 1024x768x8"  = ati, 8, 1024,  768   , "" , ""
  46.     "ATI Graphics Accelerators 1280x1024x8" = ati, 8, 1280, 1024   , "" , ""
  47.     "ATI Graphics Accelerators 640x480x16"  = ati,16,  640,  480   , "" , ""
  48.     "ATI Graphics Accelerators 800x600x16"  = ati,16,  800,  600   , "" , ""
  49.     "ATI Graphics Accelerators 1024x768x16" = ati,16, 1024,  768   , "" , ""
  50.     "ATI Graphics Accelerators 640x480x32"  = ati,32,  640,  480   , "" , ""
  51.  
  52. ;
  53. ; This maps detected options into the options we support
  54. ;
  55. ; Format: DetectedOption = MappedOption
  56. ;
  57.  
  58. [MapOfOptions]
  59.     "VGA"                       = "VGA"
  60.     "COMPAQ AVGA"               = "VGA"
  61.     "COMPAQ AGB"                = "VGA"
  62.     "8514 MONITOR UNKNOWN"      = "VGA"
  63.     "8514 VGA MONITOR"          = "VGA"
  64.     "8514 8503 MONO"            = "VGA"
  65.     "8514 8514 GAD"             = "VGA"
  66.     "GENOA VGA"                 = "VGA"
  67.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  68.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  69.     "TRIDENT VGA"               = "VGA"
  70.     "TRIDENT VGA 9100"          = "VGA"
  71.     "PARADISE VGA"              = "VGA"
  72.     "PARADISE VGA PROM"         = "VGA"
  73.     "PARADISE VGA CHIP 1F"      = "VGA"
  74.     "ATI VGA"            = "VGA"
  75.     "ATI VGA WONDER"        = "VGA"
  76.     "TSENGLAB VGA ET3000"       = "VGA"
  77.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  78.     "CIRRUS VGA"                = "VGA"
  79.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  80.     "XGA"                       = "XGA 640x480x8"
  81.     "DELL DGX"                  = "DELL DGX 640x480x8"
  82.     "S3 VGA"                    = "S3 VGA 640x480x8"
  83.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  84.  
  85.  
  86. ;
  87. ; Order of the information:
  88. ;
  89. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  90. ;
  91.  
  92. [MiniportDrivers]
  93.     ati   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11,  {ati}, 0, %SystemRoot%\System32\IoLogMsg.dll , 7
  94.  
  95.  
  96. ;-----------------------------------------------------------------------
  97. ; OPTION TEXT SECTION
  98. ; -------------------
  99. ; These are text strings used to identify the option to the user.  There
  100. ; are separate sections for each language supported.  The format of the
  101. ; section name is "OptionsText" concatenated with the Language represented
  102. ; by the section.
  103. ;
  104. ;-----------------------------------------------------------------------
  105.  
  106. [OptionsTextENG]
  107.     "ATI Graphics Accelerators 640x480x8"   = "ATI Graphics Accelerators 640x480, 8 bit color"
  108.     "ATI Graphics Accelerators 800x600x8"   = "ATI Graphics Accelerators 800x600, 8 bit color"
  109.     "ATI Graphics Accelerators 1024x768x8"  = "ATI Graphics Accelerators 1024x768, 8 bit color"
  110.     "ATI Graphics Accelerators 1280x1024x8" = "ATI Graphics Accelerators 1280x1024, 8 bit color"
  111.     "ATI Graphics Accelerators 640x480x16"  = "ATI Graphics Accelerators 640x480, 16 bit color"
  112.     "ATI Graphics Accelerators 800x600x16"  = "ATI Graphics Accelerators 800x600, 16 bit color"
  113.     "ATI Graphics Accelerators 1024x768x16" = "ATI Graphics Accelerators 1024x768, 16 bit color"
  114.     "ATI Graphics Accelerators 640x480x32"  = "ATI Graphics Accelerators 640x480, 32 bit color"
  115.  
  116.  
  117. ;---------------------------------------------------------------------------
  118. ; 1. Identify
  119. ;
  120. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  121. ;                as we are choosing currently.
  122. ;
  123. ; INPUT:         None
  124. ;
  125. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  126. ;                $($R1): Option Type (COMPUTER ...)
  127. ;                $($R2): Diskette description
  128. ;---------------------------------------------------------------------------
  129.  
  130. [Identify]
  131.     ;
  132.     ;
  133.     read-syms Identification
  134.  
  135.     set Status     = STATUS_SUCCESSFUL
  136.     set Identifier = $(OptionType)
  137.     set Media      = #("Source Media Descriptions", 1, 1)
  138.  
  139.     Return $(Status) $(Identifier) $(Media)
  140.  
  141.  
  142.  
  143. ;------------------------------------------------------------------------
  144. ; 2. ReturnOptions:
  145. ;
  146. ; DESCRIPTION:   To return the option list supported by this INF and the
  147. ;                localised text list representing the options.
  148. ;
  149. ;
  150. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  151. ;
  152. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  153. ;                                STATUS_NOLANGUAGE
  154. ;                                STATUS_FAILED
  155. ;
  156. ;                $($R1): Option List
  157. ;                $($R2): Option Text List
  158. ;------------------------------------------------------------------------
  159.  
  160. [ReturnOptions]
  161.     ;
  162.     ;
  163.     set Status        = STATUS_FAILED
  164.     set OptionList     = {}
  165.     set OptionTextList = {}
  166.  
  167.     ;
  168.     ; Check if the language requested is supported
  169.     ;
  170.     set LanguageList = ^(LanguagesSupported, 1)
  171.     Ifcontains(i) $($0) in $(LanguageList)
  172.         goto returnoptions
  173.     else
  174.         set Status = STATUS_NOLANGUAGE
  175.         goto finish_ReturnOptions
  176.     endif
  177.  
  178.     ;
  179.     ; form a list of all the options and another of the text representing
  180.     ;
  181.  
  182. returnoptions = +
  183.     set OptionList     = ^(Options, 0)
  184.     set OptionTextList = ^(OptionsText$($0), 1)
  185.     set Status         = STATUS_SUCCESSFUL
  186.  
  187. finish_ReturnOptions = +
  188.     Return $(Status) $(OptionList) $(OptionTextList)
  189.  
  190.  
  191.  
  192. ;---------------------------------------------------------------------------
  193. ; MapToSupportedOption
  194. ;
  195. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  196. ;                option which represents it.
  197. ;
  198. ; INPUT:         $($0): Option
  199. ;
  200. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  201. ;                $($R1): Mapped Option
  202. ;
  203. ;---------------------------------------------------------------------------
  204.  
  205. [MapToSupportedOption]
  206.     ;
  207.     set Status = STATUS_FAILED
  208.     set MappedOption = $($0)
  209.  
  210.     ;
  211.     ; If the option is one we can support using one of our standard options
  212.     ; then map it to the standard option else map it to the default option
  213.     ; which is VGA.
  214.     ;
  215.  
  216.     set OptionList = ^(MapOfOptions, 0)
  217.     ifcontains $($0) in $(OptionList)
  218.         set MappedOption = #(MapOfOptions, $($0), 1)
  219.     else
  220.         set MappedOption = "VGA"
  221.     endif
  222.  
  223.     set Status = STATUS_SUCCESSFUL
  224.     Return $(Status) $(MappedOption)
  225.  
  226.  
  227.  
  228. [ServicesEntry]
  229.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  230.  
  231.  
  232. ;
  233. ; InstallOption:
  234. ;
  235. ; FUNCTION:  To copy files representing Options
  236. ;            To configure the installed option
  237. ;            To update the registry for the installed option
  238. ;
  239. ; INPUT:     $($0):  L